﻿@model IEnumerable<RedSand.Site.Models.ReplyFullInfo>
@if (Model != null)
{                    
    foreach (var items in Model)
    {     
        <div class="item-comment clearfix">
            @Html.Action("feGenerateCommentLink", new { id = items.ReplyID, newsId = items.NewsID, userId = items.UserID, action = "delete", ajaxOption = new AjaxOptions { UpdateTargetId = "list-comment", Confirm = "Do you want delete the comment?" } })
            <img alt='@items.Username' src="@items.Avatar.GetImageUrl(1)" class="avt" />
            <h4>
                @items.Username</h4>
            <div class="description">
                @items.Content</div>
            <span class="comment-date">@items.CreateDate</span>                           
        </div>
    }
    <div class="pager-wrapper">
        @Ajax.Pager("feComment", "Reply", null, 1, 7, (int)ViewBag.TotalRecord, 7, PagerMode.NextPrevNumeric, new AjaxOptions { UpdateTargetId = "list-comment" }, (object)ViewBag.RouteValues, null)
    </div>
}
